package cn.livingCloud.repository;

import cn.livingCloud.entity.core.CaseImage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CaseImageMapper {
    int deleteByPrimaryKey(String uuid);

    int insert(CaseImage record);

    int insertSelective(CaseImage record);

    CaseImage selectByPrimaryKey(String uuid);

    int updateByPrimaryKeySelective(CaseImage record);

    int updateByPrimaryKey(CaseImage record);

    CaseImage findCaseImageByCaseId(String uuid);

    List<CaseImage> findImagesByCaseUuid(@Param("uuid") String uuid, @Param("result") boolean result);

    List<CaseImage> findAllImagesByCaseUuid(String uuid);

    void deleteByCaseUuid(@Param("uuid") String caseUuid);

    List<CaseImage> findStartWithString(@Param("key") String key);
}